/* 搜索和筛选区域样式 */
.actions-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.create-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.create-btn:hover {
    background-color: #218838;
}

/* 申请列表表格样式 */
.applications-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.applications-table th,
.applications-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

.applications-table th {
    background-color: #f8f9fa;
}

.applications-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    max-width: 500px;
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-footer {
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-form input[type="text"],
.modal-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 15px;
}

.modal-form textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-form button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.modal-form .cancel {
    background-color: #6c757d;
    color: white;
}

.modal-form .submit {
    background-color: #28a745;
    color: white;
}

/* 申请详情样式 */
.application-details dt {
    font-weight: bold;
    margin-top: 10px;
}

.application-details dd {
    margin-left: 0;
    margin-bottom: 10px;
}

/* 空结果提示样式 */
.empty-result {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 20px;
}

/* 申请表单样式 */
.application-form {
    margin: 20px 0;
}

.application-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.application-form textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.application-form button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.application-form button:hover {
    background-color: #45a049;
}

/* 申请状态样式 */
.application-status {
    margin: 20px 0;
    padding: 15px;
    border-radius: 4px;
}

.status-none {
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
    color: #383d41;
}

/* 访问被拒绝样式 */
.access-denied {
    padding: 30px;
    text-align: center;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    margin: 20px 0;
}

.access-denied h3 {
    margin-top: 0;
}

/* 消息提示框样式 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    max-width: 300px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.message-toast.success {
    background-color: #4caf50;
}

.message-toast.error {
    background-color: #f44336;
}

.message-toast.info {
    background-color: #2196f3;
}

.message-toast.warning {
    background-color: #ff9800;
} 

/* 分页控件样式 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination-info {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination-btn {
    padding: 5px 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.prev-btn, .next-btn {
    font-weight: bold;
} 

/* 任务状态样式 */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-dispatched {
    background-color: #f0ad4e;
    color: white;
}

.status-completed {
    background-color: #5bc0de;
    color: white;
}

.status-confirmed {
    background-color: #5cb85c;
    color: white;
}

.delete-task-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-task-btn:hover {
    background-color: #c9302c;
}

.delete-task-btn i {
    font-size: 14px;
} 

/* 确认完成按钮样式 */
.confirm-task-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 12px;
}

.confirm-task-btn:hover {
    background-color: #0d8aee;
}

.confirm-task-btn i {
    margin-right: 4px;
    font-size: 12px;
}

/* 修改评分按钮样式 */
.edit-score-btn {
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 12px;
}

.edit-score-btn:hover {
    background-color: #0d8aee;
}

.edit-score-btn i {
    margin-right: 4px;
    font-size: 12px;
} 

/* 个人与公司资料页面样式 */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.form-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.form-section h4 {
    margin-top: 5px;
    margin-bottom: 15px;
    color: #495057;
}

.user-profile-info {
    margin-bottom: 20px;
}

.user-profile-info p {
    margin: 8px 0;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.profile-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-actions button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.password-hint {
    font-size: 14px;
    color: #6c757d;
    margin: 10px 0;
}

.password-hint a {
    color: #007bff;
    text-decoration: none;
}

.password-hint a:hover {
    text-decoration: underline;
}

.danger-zone {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #dc3545;
    border-radius: 5px;
    width: 100%;
}

.danger-zone h4 {
    color: #dc3545;
    margin-top: 0;
    font-size: 16px;
}

.danger-zone .warning-text {
    color: #6c757d;
    font-size: 13px;
    margin-top: 10px;
}

#delete-company-btn {
    background-color: #dc3545;
    border-color: #dc3545;
}

#delete-company-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 确认对话框样式 */
.confirmation-content {
    padding: 10px 0;
}

.confirmation-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.confirmation-content .text-danger {
    color: #dc3545;
}

#delete-company-confirm-input {
    margin-top: 10px;
} 